	<div class="row">
		<div class="col-sm-12 col-md-12 col-lg-12">
			<h3 class="page-header">入库管理管理</h3>
			<hr/>
		</div>
	</div>
	<form class="form-inline mb-sm-3 mb-md-3 mb-lg-3">
		<div class="form-group">
			<label>SKU：</label>
			<input class="form-control" id="sku" name="sku" placeholder="精确查询" ng-model="sku">
		</div>
		<button class="btn btn-primary" ng-click="clear()">清 空</button>
		<button class="btn btn-primary mx-sm-1 mx-md-1 mx-lg-1" ng-click="getStockBySku(sku)">查 询</button>
	</form>

	<!--查询列表-->
	<table class="table table-bordered table-hover">
		<thead class="bg-primary text-center">
			<tr>
				<th>序号</th>
				<th>SKU</th>
				<th>仓库位置</th>
				<th>库存数量</th>
				<th>采购数量</th>
				<th>锁定数量</th>
				<th>创建人</th>
				<th>创建时间</th>
				<th>是否有效</th>
				<th>备注</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="s in stock">
				<td class="text-center">{{$index+1}}</td>
				<td class="text-center">{{s.sku}}</td>
				<td class="text-center">{{s.location}}</td>
				<td class="text-center">{{s.stockCount}}</td>
				<td class="text-center">{{s.purchaseCount}}</td>
				<th class="text-center">{{s.lockCount}}</th>
				<th class="text-center">{{s.createdBy}}</th>
				<th class="text-center">{{s.createdTime.time| date:"yyyy-MM-dd HH:mm:ss"}}</th>
				<th class="text-center">{{s.enabled}}</th>
				<th class="text-center">{{s.remarks}}</th>
				<th class="text-center">
					<button class="btn btn-success" data-toggle="modal" data-target="#stockModal" ng-click="inStock(s.sku)">入  库</button>

				</th>
			</tr>
		</tbody>
	</table>

	<!--新增表单模态窗口-->
	<div class="modal fade" id="stockModal" tabindex="-1" role="dialog" data-backdrop="static" aria-hidden="true">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h5 class="modal-title" id="exampleModalLabel">入库</h5>
					<button type="button" class="close" data-dismiss="modal" aria-label="Close">
          				<span aria-hidden="true">&times;</span>
       				 </button>
				</div>
				<div class="modal-body">
					<form id="inStockForm">
						<div class="form-group row">
							<label class="col-sm-3 col-md-3 col-lg-3 col-form-label">SKU：</label>
							<div class="col-sm-9 col-md-9 col-lg-9">
								<input class="form-control" id="sku" name="sku" ng-model="in_sku">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-md-3 col-lg-3 col-form-label">入库数量：</label>
							<div class="col-sm-9 col-md-9 col-lg-9">
								<input class="form-control" id="count" name="count">
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-md-3 col-lg-3 col-form-label">入库类型：</label>
							<div class="col-sm-9 col-md-9 col-lg-9">
								<select id="sex" name="type" class="form-control">
									<option value=""></option>
									<option value="1">采购入库</option>
									<option value="2">生产入库</option>
									<option value="3">借调入库</option>
								</select>
							</div>
						</div>
						<div class="form-group row">
							<label class="col-sm-3 col-md-3 col-lg-3 col-form-label">备注：</label>
							<div class="col-sm-9 col-md-9 col-lg-9">
								<textarea name="remarks" rows="3" class="form-control" name="remarks"></textarea>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
					<button type="button" class="btn btn-primary" ng-click="inToStock()" data-dismiss="modal">保存</button>
				</div>
			</div>
		</div>
	</div>
</div>